<?
   include("head.html.php");
?>

<!--
 ____________________________________________________________
|                                                            |
|    DESIGN + Pat Heard { http://fullahead.org }             |
|      DATE + 2006.03.19                                     |
| COPYRIGHT + Free use if this notice is left in place       |
|____________________________________________________________|

-->

<!-- CONTENT: Holds all site content except for the footer.  This is what causes the footer to stick to the bottom -->
<div id="content">

<?
	$here = "games";
   include("header.html.php");
   include("topmenu.php");
?>

  <!-- PAGE CONTENT BEGINS: This is where you would define the columns 
       (number, width and alignment) -->
  <div id="page">
	<table style="height:350px;">
    <tr style="height:100%;vertical-align:top;">
    <td>
<?php
   include("login.html.php");
?>
</td><td>
  <!-- Put stuff here. --> 
  <p>
   In construction. 
  </p>
  <div id="gameList">
	<ul>
		<?
			$db = connectToDB();
			$sql    = "SELECT gameName FROM game";
			$result = mysql_query($sql, $db);

			if (!$result) 
			{
				print "DB Error, could not query the database\n";
				print "MySQL Error: " . mysql_error();
				return 0;
			}
			$count = 0;
			while ($row = mysql_fetch_row($result))
			{
				print "<a href='javascript:getGames(\"" . $row[0] . "\")'>". $row[0] . "</a>";
				//print $row[0];
			}
		?>
	</ul>
	</div>
  	
</td></tr></table>
</div>
</div>
<!--<script type="text/javascript">getGames();</script>-->
<?php
   include("footer.html.php");
?>



